import axios from '~/axios'

export function articleQueryPage(reqBody) {
    return axios.post('/official/backend/article/pageQuery', reqBody)
}

export function articleAddOrUpdate(reqBody) {
    return axios.post('/official/backend/article/addOrUpdate', reqBody)
}

export function article_delete_api(reqBody) {
    return axios.post('/official/backend/article/delete', reqBody)
}
export function article_detail_api(reqBody) {
    return axios.post('/official/backend/article/detail', reqBody)
}
// 服务委托列表
export function fwwt_my_api(reqBody) {
    return axios.post('/official/backend/commissions/search', reqBody)
}
// 标记服务已解决
export function fwwt_setSolved_api(reqBody) {
    return axios.post('/official/backend/commissions/setSolved', reqBody)
}
// 合作伙伴分页查询
export function partner_pageQuery_api(reqBody) {
    return axios.post('/official/back/partner/pageQuery', reqBody)
}
// 合作伙伴新增更新
export function partner_addOrUpdate_api(reqBody) {
    return axios.post('/official/back/partner/addOrUpdate', reqBody)
}
// 合作伙伴删除
export function partner_delete_api(reqBody) {
    return axios.post('/official/back/partner/delete', reqBody)
}
// 字典表分页查询
export function sysDict_pageQuery_api(reqBody) {
    return axios.post('/official/backend/sysDict/pageQuery', reqBody)
}
// 字典表新增更新
export function sysDict_addOrUpdate_api(reqBody) {
    return axios.post('/official/backend/sysDict/addOrUpdate', reqBody)
}
// 产品分类（类型）
export function product_getProductCategory_api(reqBody) {
    return axios.get('/official/backend/product/getProductCategory')
}
// 产品 分页查询
export function product_pageQuery_api(reqBody) {
    return axios.post('/official/backend/product/pageQuery', reqBody)
}
// 产品 新增
export function product_addOrUpdate_api(paramIo) {
    // return axios.post('/official/backend/product/addOrUpdate', reqBody)
    return axios({
            url: '/official/backend/product/addOrUpdate',
            method: 'post',
            data: paramIo,
            timeout: 3000000
        })
}
// 产品 详情
export function product_detail_api(reqBody) {
    return axios.post('/official/backend/product/detail', reqBody)
}
// 产品 删除
export function product_delete_api(reqBody) {
    return axios.post('/official/backend/product/delete', reqBody)
}
// 问答列表查询
export function ask_pageQuery_api(reqBody) {
    return axios.post('/official/backend/ask/pageQuery', reqBody)
}
// 问答列表详情查询
export function ask_pageQueryItem_api(reqBody) {
    return axios.post('/official/backend/ask/pageQueryItem', reqBody)
}
// 回复
export function ask_add_api(reqBody) {
    return axios.post('/official/backend/ask/add', reqBody)
}
// 删除
export function ask_deleteItem_api(reqBody) {
    return axios.post('/official/backend/ask/deleteItem', reqBody)
}